import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import {ActionSheetsPage} from '../action-sheets/action-sheets'
import {AlertsPage} from '../alerts/alerts'

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  pages: Array<{ title: string, component: any }>;

  constructor(public navCtrl: NavController) {
    this.pages = [
      {title: 'Action Sheets', component: ActionSheetsPage},
      {title: 'Alerts', component: AlertsPage}
    ];
  }

  openPage(page) {
    this.navCtrl.push(page.component);
  }
}
